package com.bci.pwtz.mysql.model;

import java.util.List;

public class CompanyMenu {
    private Long companyMenuId;

    private String menuText;

    private String menuUrl;

    private Long pid;

    private String actionCode;
    
    private int rank;
    
    private List<CompanyMenu> companyMenus;

    public Long getCompanyMenuId() {
        return companyMenuId;
    }

    public void setCompanyMenuId(Long companyMenuId) {
        this.companyMenuId = companyMenuId;
    }

    public String getMenuText() {
        return menuText;
    }

    public void setMenuText(String menuText) {
        this.menuText = menuText == null ? null : menuText.trim();
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl == null ? null : menuUrl.trim();
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getActionCode() {
        return actionCode;
    }

    public void setActionCode(String actionCode) {
        this.actionCode = actionCode == null ? null : actionCode.trim();
    }

    public int getRank() {
		return rank;
	}

	public void setRank(int rank) {
		this.rank = rank;
	}


	public List<CompanyMenu> getCompanyMenus() {
		return companyMenus;
	}

	public void setCompanyMenus(List<CompanyMenu> companyMenus) {
		this.companyMenus = companyMenus;
	}

	/* (non-Javadoc)
     * Description: <br/> 
     *
     * @return 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString()
    {
        return "CompanyMenu [companyMenuId=" + companyMenuId + ", menuText=" + menuText + ", menuUrl=" + menuUrl
                + ", pid=" + pid + ", actionCode=" + actionCode + ", rank=" + rank + ", companyMenuActions=" + companyMenus + "]";
    }
    
}